package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("forum")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "论坛帖子信息")
public class Forum extends Model<Forum> implements Serializable {
    @Schema(title = "论坛帖子id")
    @TableId(value = "forum_id")
    private int forumId;

    @Schema(title = "论坛帖子标题")
    @TableField(value = "forum_title")
    private String forumTitle;

    @Schema(title = "论坛帖子内容")
    @TableField(value = "forum_content")
    private String forumContent;

    @Schema(title = "论坛帖子创建日期")
    @TableField(value = "forum_createdate")
    private String forumCreateDate;

    @Schema(title = "发布帖子的用户id，外键")
    @TableField(value = "user_id")
    private int userId;

    @Schema(title = "帖子状态")
    @TableField(value = "status")
    private String status;

    @Schema(title = "点赞数")
    @TableField(value = "like_count")
    private int likeCount;

    @Schema(title = "论坛类型id，外键")
    @TableField(value = "forum_typeid")
    private int forumTypeId;
}